package com.game.server.db;

/**
 * ��������
 * @author 
 *
 */
public class Parameter {
	
	
    /**
     *�������
     */
    private int sqlType;
    
    /**
     * ֵ
     */
    private Object value;
    
    /**
     * �������
     */
    private ParameterType type;
    
    public Parameter(int sqlType,Object value,ParameterType type)
    {
    	this.sqlType = sqlType;
    	this.value = value;
    	this.type = type;	
    }
    
    public Parameter(int sqlType,ParameterType type)
    {
    	this.sqlType = sqlType;
    	this.type = type;	
    }
    
    public Parameter()
    {
    	
    }
    
    
    public int getSqlType() {
		return sqlType;
    }


	public void setSqlType(int sqlType) {
		this.sqlType = sqlType;
	}


	public Object getValue() {
		return value;
	}


	public void setValue(Object value) {
		this.value = value;
	}


	public ParameterType getType() {
		return type;
	}


	public void setType(ParameterType type) {
		this.type = type;
	}


	@Override
	public String toString() {
		return "Parameter{" +
				"sqlType=" + sqlType +
				", value=" + value +
				", type=" + type +
				"} \n";
	}
}
